﻿#ifndef NOTIFYLABEL_H
#define NOTIFYLABEL_H

#include <QLabel>
#include <QBasicTimer>

class NotifyLabel : public QLabel
{
    Q_OBJECT
public:
    explicit NotifyLabel(QWidget *parent, int msec = 5000);
    void showText(const QString &string);
protected:
    void timerEvent(QTimerEvent *e);
    void paintEvent(QPaintEvent *e);
private:
    const int defaultMSec;
    QBasicTimer timer;
};

#endif // NOTIFYLABEL_H
